package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-30 9:47
 */
@Getter
@Setter
@ToString
public class AccessAuthOrgBindCmd {

    @ApiModelProperty("门禁授权id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @NotNull(message = "门禁授权id不能为空")
    private Long accessAuthId;

    @ApiModelProperty("部门id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @NotEmpty(message = "部门id不能为空")
    private List<Long> orgIds;
}
